<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/member/memberAccount/memberAccount.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>平台钱包</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>充值</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">会员充值</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmMemberRecharge">
                        <input id="memberId" name="memberId" type="hidden" value="${member.memberId}">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">运营商：</label>
                            <div class="col-sm-8" style="line-height: 35px;padding-left: 0">
                                <div class="col-lg-10"><p
                                        class="form-control-static">${tenant.tenantCode} ${tenant.tenantName}</p></div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">会员名：</label>
                            <div class="col-sm-8" style="line-height: 35px;padding-left: 0">
                                <div class="col-lg-10"><p
                                        class="form-control-static">${member.nickname} ${member.mobile}</p></div>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">充值账户类型：</label>
                            <div class="col-sm-8">
                                <select name="memberType" id="memberType" class="form-control">
                                    <option value="0">个人</option>
                                    <option value="1">企业主帐户</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">金额：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" name="amount" id="amount">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">备注：</label>
                            <div class="col-sm-8">
                                <textarea class="form-control" id="remark" name="remark"></textarea>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">运营商手机：</label>
                            <div class="col-sm-8" style="line-height: 35px;padding-left: 0">
                                <div class="col-lg-10"><p class="form-control-static">${user.mobile}</p></div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">验证码：</label>
                            <div class="col-sm-8">
                                <input id="authCode" style="display: inline-block" name="authCode" autocomplete="off"
                                       class="form-control col-sm-9" type="text"/>
                                <button type="button" class="btn btn-warning "
                                        style="margin-bottom: 2px;margin-left: 5px"
                                        id="sendVerificationCode"
                                        onclick="memberRecharge.getAuthCode()">获取验证码
                                </button>
                            </div>
                        </div>
                        <div class="form-group" style="margin: 3rem 0 0;text-align: center">
                            <div class="col-sm-4 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    memberRecharge.init();
</script>
</body>
</html>
